package com.netx.generics.collections;
import java.util.AbstractMap;
import java.util.Map;
import java.util.Set;

import com.netx.generics.basic.Checker;


public class ImmutableMap<K,V> extends AbstractMap<K,V> {

	private final Map<K,V> _map;
	
	public ImmutableMap(Map<K,V> hMap) {
		Checker.checkNull(hMap, "hMap");
		_map = hMap;
	}

	public Set<Map.Entry<K,V>> entrySet() {
		return new ImmutableSet<Map.Entry<K,V>>(_map.entrySet());
	}

}
